//
//  CompileCell.m
//  ECO
//
//  Created by zl on 2019/9/25.
//  Copyright © 2019 谷银行. All rights reserved.
//

#import "CompileCell.h"

@implementation CompileCell
- (UIView *)BgView{
    if (!_BgView) {
        _BgView = [[UIView alloc]initWithFrame:CGRectMakeCustom(15, 0, 320-30, 40)];
        _BgView.backgroundColor = [UIColor colorWithHexString:@"#F6F6F6"];
    }
    return _BgView;
}
- (UILabel *)name{
    if (!_name) {
        _name = [[UILabel alloc]initWithFrame:CGRectMakeCustom(9, 8, 320-30,24 )];
    }
    return _name;
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self.contentView addSubview:self.BgView];
        [self.BgView addSubview:self.name];
    }
    return self;
}
@end
